package com.hotelvip.entity;

import com.hotelvip.common.utils.EnumUtil;
import com.hotelvip.enumEntity.GenderEnum;
import lombok.Data;
import lombok.experimental.Accessors;

/**
 * @author Lzh
 * @date 2020/12/11 13:52
 */
@Data
@Accessors(chain = true)
//@JsonInclude(JsonInclude.Include.NON_NULL)
public class TestEnum {
    private Integer id;
    private String name;
    private Integer sex;
    private String sexText;

    public String getSexText() {
        return EnumUtil.getByindex(sex, GenderEnum.class).getName();
    }
}
